

import UIKit
import GradientLoadingBar
import Alamofire
import Reachability


class FavoriteTabViewController: UIViewController {
    var tabList: [String] = []
    var  tabPageViewController: TabPageViewController!
    
    override var wx_titleTextAttributes: [NSAttributedString.Key : Any]? {
        return [NSAttributedString.Key.foregroundColor: UIColor.black]
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationItem.title = "收藏"
        tabPageViewController = TabPageViewController()
        
        self.view.backgroundColor = commonDarkBackgroundColor
        
        
        tabPageViewController.isInfinity = false
        tabPageViewController.option.currentColor = .primaryColor
        tabPageViewController.option.defaultColor = .black
        tabPageViewController.option.pageBackgoundColor = commonBackgroundColor
        tabPageViewController.option.tabBackgroundColor = .white
        tabPageViewController.option.tabMargin = 16.0
        tabPageViewController.option.fontSize = 16.2
        let vc = FavoriteRoleViewController()
        vc.myNavigationController = self.navigationController
        tabPageViewController.tabItems.append((vc,"角色"))
        
        let vc2 = FavoriteCreatorViewController()
        vc2.list = []
        vc2.myNavigationController = self.navigationController
        tabPageViewController.tabItems.append((vc2,"创作"))
        
        self.view.addSubview(tabPageViewController.view)
        tabPageViewController.view.snp.makeConstraints { make in
            make.top.equalTo(self.view.safeAreaLayoutGuide.snp.top)
            make.bottom.equalTo(self.view.safeAreaLayoutGuide.snp.bottom)
            make.width.equalTo(self.view)
        }
    }
    
    
    
    
    
}

